#include "concretefactoryb.h"

ConcreteFactoryB::ConcreteFactoryB()
{
    a3 = new ConcreteProductA3();
    b1 = new ConcreteProductB1();
    c1 = new ConcreteProductC1();
}

ConcreteFactoryB::~ConcreteFactoryB()
{
    delete a3;
    delete b1;
    delete c1;
}

AbstractProductA *ConcreteFactoryB::getProductA()
{
    return a3;
}

AbstractProductB *ConcreteFactoryB::getProductB()
{
    return b1;
}

AbstractProductC *ConcreteFactoryB::getProductC()
{
    return c1;
}
